<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo CON_PLATFORMNAME;?>后台管理系统</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="/static/admin/layout.css" rel="stylesheet" media="screen" type="text/css" />
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/jquery-ui.js"></script>
<script type="text/javascript" src="/static/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/static/js/formValidator-4.0.1.js"></script>
<script type="text/javascript" src="/static/js/formValidatorRegex.js"></script>
<link type="text/css" rel="stylesheet" href="/static/css/validator.css">
<script src="/static/js/jquery.form.js"></script>
<script type="text/javascript" src="/static/js/formCheck.js"></script>

<link rel="stylesheet" href="/static/css/jquery-ui.css" />
</head>
<body>

<?php $admin = $this->session->userdata('admin_user');
if($admin == null){
	header('Location: /ychadmin/login');
	exit;
}
?>
<input type="hidden" value="<?php echo $this->benchmark->elapsed_time();?>"/>
<div class="admin_top">
	<div class="admin_top_logo"><img src="/static/admin/logo.png" width="300" height="70"></div>
	<div class="admin_login">系统时间：<span id="id1"></span> &nbsp;  &nbsp; &nbsp; &nbsp;管理员:<?php echo $admin['adminname'];?> 
		&nbsp; &nbsp; &nbsp; &nbsp; <a href="/ychadmin/logout" style="color:white"><strong>退出登录</strong></a></div>
		
		
	<div class="admin_menu">
     <ul>
	 <?php
	 foreach($admin['header_list'] as $hk =>$hv){
		 if($tab==$hk){
			 echo '<li class="borrow_manager"><a href="'.$hv['link'].'">'.$hv['name'].'</a></li>';
		 }else{
			 echo '<li><a href="'.$hv['link'].'">'.$hv['name'].'</a></li>';
		 }
	 }
	 ?>
	   <li><a href="/" target="_blank"><span >返回首页</span></a></li>
	 </ul>
    </div>
		
</div>

<script>
var s = <?php echo date('H');?>;
var f = <?php echo date('i');?>;
var m = <?php echo date('s');?>;
function go1(){
    shijian = s + ":" + f + ":" + m;
    target = document.getElementById('id1');
    target.innerHTML = shijian;
    //target.innerHTML = d.toLocaleString();
    m = m + 1;
    if(m>=60){
		m = 0;
		f=f+1;
		if(f>=60){
			f=0;
			s = s+1;
			if(s>=24){
				s=0;
			}
		}
    }
    setTimeout('go1()',1000);
}
go1();
</script>